package com.bite.SingletonModel.HungryModel;

public class SingletonModelHungry {
    //定义一个全局的变量
    private static SingletonModelHungry instance = new SingletonModelHungry();
    //构造方法私有化
    private SingletonModelHungry(){};
    //获取类对象
    public static SingletonModelHungry getInstance() {
        return instance;
    }

}
